<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * detailtype.php
 * @author ranuandra
 *
 * 24 Agu 2011 10:03:18
 *
 * 
 */
?>

<div class="tbldata">
<table  class="data" class="center">
	<thead>
		<tr>
			<th colspan="3">DATA CUSTOMER</th>
		</tr>
	</thead>
	<tr>
		<td>PEMILIK</td>
		<td>:</td>
		<td> <?php echo $customer->nama?></td>
	</tr>
	<tr>
		<td>ALAMAT</td>
		<td>:</td>
		<td> <?php echo $customer->alamat?></td>
	</tr>
	<tr>
		<td>Type</td>
		<td>:</td>
		<td> <?php echo $type->type?></td>
	</tr>
	<tr>
		<td>Model</td>
		<td>:</td>
		<td> <?php echo $type->model->model?></td>
	</tr>
	<tr>
		<td>Merk</td>
		<td>:</td>
		<td> <?php echo $type->merk->merk?></td>
	</tr>
</table>
<table class="data tablesorter" class="center">
	<thead>
		<tr>
			<th>No Rangka</th>
			<th>No Mesin</th>
			<th>Tanggal Daftar</th>
		</tr>
	<thead>
	<tbody>
<?php 
//print_r($datas);
if(isset($datas))
{
	//print_r($datas);
//print_r($datas);
	//$mobils = $datas->polreg->find_all();
	foreach($datas as $data)
	{
		//print_r($data);
?>
		<tr>
			
			<td><?php echo $data->noka?></td>
			<td><?php echo $data->nosin?></td>
			<td><?php echo date("d-m-Y", strtotime($data->tgl_daftar))?></td>			
		</tr>
		
<?php 		
	}
}
?>
	</tbody>
</table>
</div>